package vip.xiaonuo.smzq.modular.kcl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.xiaonuo.common.page.CommonPageRequest;
import vip.xiaonuo.smzq.modular.kcl.entity.Ksshjl;
import vip.xiaonuo.smzq.modular.kcl.mapper.KsshjlMapper;
import vip.xiaonuo.smzq.modular.kcl.service.IKsshjlService;

import javax.annotation.Resource;

/**
 * 矿山审核记录表 服务实现类
 *
 * @author yxt
 * @since 2024-02-28
 */
@Service
public class KsshjlServiceImpl extends ServiceImpl<KsshjlMapper, Ksshjl> implements IKsshjlService {

    @Resource
    private KsshjlMapper ksshjlMapper;

    @Override
    public Page<Ksshjl> page(String ksId) {
        LambdaQueryWrapper<Ksshjl> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Ksshjl::getKsid,ksId);
        return this.page(CommonPageRequest.defaultPage(), queryWrapper);
    }
}
